package yogaModel

import (
	"time"
)

type ReqSchoolTimetable struct {
	Id                   int         `json:"id"`
	ReservationWeek      int         `json:"reservation_week" binding:"required" required_err:"参数缺失【reservation_week】"`
	ReservationMorning   interface{} `xorm:"reservation_morning json(0)" json:"reservation_morning"`
	ReservationAfternoon interface{} `xorm:"reservation_afternoon json(0)" json:"reservation_afternoon" `
	ClassId              int         `json:"class_id" binding:"required" required_err:"参数缺失【class_id】"`
	CreatedAt            time.Time   `xorm:"created" json:"-"`
	UpdatedAt            time.Time   `xorm:"updated" json:"-"`
	DeletedAt            time.Time   `xorm:"deleted" json:"-"`
	Acid                 int         `json:"acid"`
	SubMchId             string      `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	ClassType            int         `json:"class_type" binding:"required" required_err:"参数缺失【class_type】"`
	AppointmentsNumber   int         `json:"appointments_number" `
	State                int         `json:"state"`
	ClassName            string      `json:"class_name"`
	ReservationDate      int         `json:"reservation_date" binding:"required" required_err:"参数缺失【reservation_date】"`
}
type SearchSchoolTimetable struct {
	PageNo    int `json:"pageNo"`
	PageSize  int `json:"pageSize"`
	Week      int `json:"week"`
	ClassType int `json:"class_type"`
	VenueId   int `json:"venue_id"`
	Year      int `json:"year"`
	ClassId   int `json:"class_id"`
	Day       int `json:"day"`
}
type JoinDateToGroupClass struct {
	Id                   int         `json:"id"`
	Duration             int         `json:"duration"`
	Difficulty           float64     `json:"difficulty"`
	TeacherName          string      `json:"teacher_name"`
	TeacherPic           string      `json:"teacher_pic"`
	Classroom            string      `json:"classroom"`
	Name                 string      `json:"name"`
	ClassType            int         `xorm:"class_type" json:"class_type"`
	IsReservation        int         `xorm:"-" json:"is_reservation"`
	Price                float32     `json:"price"`
	StartTime            string      `json:"start_time"`
	EndTime              string      `json:"end_time"`
	Cover                string      `json:"cover"`
	Content              string      `json:"content"`
	DeletedAt            time.Time   `xorm:"deleted" json:"-"`
	ReservationMorning   interface{} `xorm:"reservation_morning json(0)" json:"reservation_morning"`
	ReservationAfternoon interface{} `xorm:"reservation_afternoon json(0)" json:"reservation_afternoon" `
	TimeStr              string      `json:"time_str"`
}
type JoinDate2Teacher struct {
	Id                   int         `json:"id"`
	Name                 string      `json:"name" binding:"required" required_err:"参数缺失【name】"`
	Introduction         string      `json:"introduction" binding:"required" required_err:"参数缺失【introduction】"`
	Pic                  string      `json:"pic" binding:"required" required_err:"参数缺失【pic】"`
	Sex                  int         `json:"sex" binding:"required" required_err:"参数缺失【sex】"`
	Level                int         `json:"level" binding:"required" required_err:"参数缺失【level】"`
	PhoneNumber          string      `json:"phone_number" binding:"required" required_err:"参数缺失【phone_number】"`
	StarRating           float32     `json:"star_rating"`
	StartTime            string      `json:"start_time"`
	EndTime              string      `json:"end_time"`
	IsReservation        int         `xorm:"-" json:"is_reservation"`
	IsHome               int         `json:"is_home"`
	VenueId              int         `json:"venue_id"`
	Cover                string      `json:"cover" binding:"required" required_err:"参数缺失【cover】"`
	DeletedAt            time.Time   `xorm:"yt.deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
	ReservationMorning   interface{} `xorm:"reservation_morning json(0)" json:"reservation_morning"`
	ReservationAfternoon interface{} `xorm:"reservation_afternoon json(0)" json:"reservation_afternoon" `
	TimeStr              string      `json:"time_str"`
}
